<?php


/**
 * Base class that represents a query for the 'event_order_proposal_free_days' table.
 *
 *
 *
 * @method RcpEventOrderProposalFreeDaysQuery orderById($order = Criteria::ASC) Order by the id column
 * @method RcpEventOrderProposalFreeDaysQuery orderByStartDate($order = Criteria::ASC) Order by the start_date column
 * @method RcpEventOrderProposalFreeDaysQuery orderByEndDate($order = Criteria::ASC) Order by the end_date column
 * @method RcpEventOrderProposalFreeDaysQuery orderByEventOrderId($order = Criteria::ASC) Order by the event_order_id column
 * @method RcpEventOrderProposalFreeDaysQuery orderBySelected($order = Criteria::ASC) Order by the selected column
 * @method RcpEventOrderProposalFreeDaysQuery orderByLastModified($order = Criteria::ASC) Order by the last_modified column
 * @method RcpEventOrderProposalFreeDaysQuery orderByCreated($order = Criteria::ASC) Order by the created column
 *
 * @method RcpEventOrderProposalFreeDaysQuery groupById() Group by the id column
 * @method RcpEventOrderProposalFreeDaysQuery groupByStartDate() Group by the start_date column
 * @method RcpEventOrderProposalFreeDaysQuery groupByEndDate() Group by the end_date column
 * @method RcpEventOrderProposalFreeDaysQuery groupByEventOrderId() Group by the event_order_id column
 * @method RcpEventOrderProposalFreeDaysQuery groupBySelected() Group by the selected column
 * @method RcpEventOrderProposalFreeDaysQuery groupByLastModified() Group by the last_modified column
 * @method RcpEventOrderProposalFreeDaysQuery groupByCreated() Group by the created column
 *
 * @method RcpEventOrderProposalFreeDaysQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
 * @method RcpEventOrderProposalFreeDaysQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
 * @method RcpEventOrderProposalFreeDaysQuery innerJoin($relation) Adds a INNER JOIN clause to the query
 *
 * @method RcpEventOrderProposalFreeDaysQuery leftJoinEventOrders($relationAlias = null) Adds a LEFT JOIN clause to the query using the EventOrders relation
 * @method RcpEventOrderProposalFreeDaysQuery rightJoinEventOrders($relationAlias = null) Adds a RIGHT JOIN clause to the query using the EventOrders relation
 * @method RcpEventOrderProposalFreeDaysQuery innerJoinEventOrders($relationAlias = null) Adds a INNER JOIN clause to the query using the EventOrders relation
 *
 * @method RcpEventOrderProposalFreeDays findOne(PropelPDO $con = null) Return the first RcpEventOrderProposalFreeDays matching the query
 * @method RcpEventOrderProposalFreeDays findOneOrCreate(PropelPDO $con = null) Return the first RcpEventOrderProposalFreeDays matching the query, or a new RcpEventOrderProposalFreeDays object populated from the query conditions when no match is found
 *
 * @method RcpEventOrderProposalFreeDays findOneById(int $id) Return the first RcpEventOrderProposalFreeDays filtered by the id column
 * @method RcpEventOrderProposalFreeDays findOneByStartDate(string $start_date) Return the first RcpEventOrderProposalFreeDays filtered by the start_date column
 * @method RcpEventOrderProposalFreeDays findOneByEndDate(string $end_date) Return the first RcpEventOrderProposalFreeDays filtered by the end_date column
 * @method RcpEventOrderProposalFreeDays findOneByEventOrderId(int $event_order_id) Return the first RcpEventOrderProposalFreeDays filtered by the event_order_id column
 * @method RcpEventOrderProposalFreeDays findOneBySelected(boolean $selected) Return the first RcpEventOrderProposalFreeDays filtered by the selected column
 * @method RcpEventOrderProposalFreeDays findOneByLastModified(string $last_modified) Return the first RcpEventOrderProposalFreeDays filtered by the last_modified column
 * @method RcpEventOrderProposalFreeDays findOneByCreated(string $created) Return the first RcpEventOrderProposalFreeDays filtered by the created column
 *
 * @method array findById(int $id) Return RcpEventOrderProposalFreeDays objects filtered by the id column
 * @method array findByStartDate(string $start_date) Return RcpEventOrderProposalFreeDays objects filtered by the start_date column
 * @method array findByEndDate(string $end_date) Return RcpEventOrderProposalFreeDays objects filtered by the end_date column
 * @method array findByEventOrderId(int $event_order_id) Return RcpEventOrderProposalFreeDays objects filtered by the event_order_id column
 * @method array findBySelected(boolean $selected) Return RcpEventOrderProposalFreeDays objects filtered by the selected column
 * @method array findByLastModified(string $last_modified) Return RcpEventOrderProposalFreeDays objects filtered by the last_modified column
 * @method array findByCreated(string $created) Return RcpEventOrderProposalFreeDays objects filtered by the created column
 *
 * @package    propel.generator.rcp.om
 */
abstract class RcpBaseEventOrderProposalFreeDaysQuery extends ModelCriteria
{
    /**
     * Initializes internal state of RcpBaseEventOrderProposalFreeDaysQuery object.
     *
     * @param     string $dbName The dabase name
     * @param     string $modelName The phpName of a model, e.g. 'Book'
     * @param     string $modelAlias The alias for the model in this query, e.g. 'b'
     */
    public function __construct($dbName = 'vgp_rcp', $modelName = 'RcpEventOrderProposalFreeDays', $modelAlias = null)
    {
        parent::__construct($dbName, $modelName, $modelAlias);
    }

    /**
     * Returns a new RcpEventOrderProposalFreeDaysQuery object.
     *
     * @param     string $modelAlias The alias of a model in the query
     * @param     RcpEventOrderProposalFreeDaysQuery|Criteria $criteria Optional Criteria to build the query from
     *
     * @return RcpEventOrderProposalFreeDaysQuery
     */
    public static function create($modelAlias = null, $criteria = null)
    {
        if ($criteria instanceof RcpEventOrderProposalFreeDaysQuery) {
            return $criteria;
        }
        $query = new RcpEventOrderProposalFreeDaysQuery();
        if (null !== $modelAlias) {
            $query->setModelAlias($modelAlias);
        }
        if ($criteria instanceof Criteria) {
            $query->mergeWith($criteria);
        }

        return $query;
    }

    /**
     * Find object by primary key.
     * Propel uses the instance pool to skip the database if the object exists.
     * Go fast if the query is untouched.
     *
     * <code>
     * $obj  = $c->findPk(12, $con);
     * </code>
     *
     * @param mixed $key Primary key to use for the query
     * @param     PropelPDO $con an optional connection object
     *
     * @return   RcpEventOrderProposalFreeDays|RcpEventOrderProposalFreeDays[]|mixed the result, formatted by the current formatter
     */
    public function findPk($key, $con = null)
    {
        if ($key === null) {
            return null;
        }
        if ((null !== ($obj = RcpEventOrderProposalFreeDaysPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {
            // the object is alredy in the instance pool
            return $obj;
        }
        if ($con === null) {
            $con = Propel::getConnection(RcpEventOrderProposalFreeDaysPeer::DATABASE_NAME, Propel::CONNECTION_READ);
        }
        $this->basePreSelect($con);
        if ($this->formatter || $this->modelAlias || $this->with || $this->select
         || $this->selectColumns || $this->asColumns || $this->selectModifiers
         || $this->map || $this->having || $this->joins) {
            return $this->findPkComplex($key, $con);
        } else {
            return $this->findPkSimple($key, $con);
        }
    }

    /**
     * Find object by primary key using raw SQL to go fast.
     * Bypass doSelect() and the object formatter by using generated code.
     *
     * @param     mixed $key Primary key to use for the query
     * @param     PropelPDO $con A connection object
     *
     * @return   RcpEventOrderProposalFreeDays A model object, or null if the key is not found
     * @throws   PropelException
     */
    protected function findPkSimple($key, $con)
    {
        $sql = 'SELECT ID, START_DATE, END_DATE, EVENT_ORDER_ID, SELECTED, LAST_MODIFIED, CREATED FROM event_order_proposal_free_days WHERE ID = :p0';
        try {
            $stmt = $con->prepare($sql);
            $stmt->bindValue(':p0', $key, PDO::PARAM_INT);
            $stmt->execute();
        } catch (Exception $e) {
            Propel::log($e->getMessage(), Propel::LOG_ERR);
            throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);
        }
        $obj = null;
        if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
            $obj = new RcpEventOrderProposalFreeDays();
            $obj->hydrate($row);
            RcpEventOrderProposalFreeDaysPeer::addInstanceToPool($obj, (string) $key);
        }
        $stmt->closeCursor();

        return $obj;
    }

    /**
     * Find object by primary key.
     *
     * @param     mixed $key Primary key to use for the query
     * @param     PropelPDO $con A connection object
     *
     * @return RcpEventOrderProposalFreeDays|RcpEventOrderProposalFreeDays[]|mixed the result, formatted by the current formatter
     */
    protected function findPkComplex($key, $con)
    {
        // As the query uses a PK condition, no limit(1) is necessary.
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $stmt = $criteria
            ->filterByPrimaryKey($key)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
    }

    /**
     * Find objects by primary key
     * <code>
     * $objs = $c->findPks(array(12, 56, 832), $con);
     * </code>
     * @param     array $keys Primary keys to use for the query
     * @param     PropelPDO $con an optional connection object
     *
     * @return PropelObjectCollection|RcpEventOrderProposalFreeDays[]|mixed the list of results, formatted by the current formatter
     */
    public function findPks($keys, $con = null)
    {
        if ($con === null) {
            $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);
        }
        $this->basePreSelect($con);
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $stmt = $criteria
            ->filterByPrimaryKeys($keys)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->format($stmt);
    }

    /**
     * Filter the query by primary key
     *
     * @param     mixed $key Primary key to use for the query
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByPrimaryKey($key)
    {

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::ID, $key, Criteria::EQUAL);
    }

    /**
     * Filter the query by a list of primary keys
     *
     * @param     array $keys The list of primary key to use for the query
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByPrimaryKeys($keys)
    {

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::ID, $keys, Criteria::IN);
    }

    /**
     * Filter the query on the id column
     *
     * Example usage:
     * <code>
     * $query->filterById(1234); // WHERE id = 1234
     * $query->filterById(array(12, 34)); // WHERE id IN (12, 34)
     * $query->filterById(array('min' => 12)); // WHERE id > 12
     * </code>
     *
     * @param     mixed $id The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterById($id = null, $comparison = null)
    {
        if (is_array($id) && null === $comparison) {
            $comparison = Criteria::IN;
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::ID, $id, $comparison);
    }

    /**
     * Filter the query on the start_date column
     *
     * Example usage:
     * <code>
     * $query->filterByStartDate('2011-03-14'); // WHERE start_date = '2011-03-14'
     * $query->filterByStartDate('now'); // WHERE start_date = '2011-03-14'
     * $query->filterByStartDate(array('max' => 'yesterday')); // WHERE start_date > '2011-03-13'
     * </code>
     *
     * @param     mixed $startDate The value to use as filter.
     *              Values can be integers (unix timestamps), DateTime objects, or strings.
     *              Empty strings are treated as NULL.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByStartDate($startDate = null, $comparison = null)
    {
        if (is_array($startDate)) {
            $useMinMax = false;
            if (isset($startDate['min'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::START_DATE, $startDate['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($startDate['max'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::START_DATE, $startDate['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::START_DATE, $startDate, $comparison);
    }

    /**
     * Filter the query on the end_date column
     *
     * Example usage:
     * <code>
     * $query->filterByEndDate('2011-03-14'); // WHERE end_date = '2011-03-14'
     * $query->filterByEndDate('now'); // WHERE end_date = '2011-03-14'
     * $query->filterByEndDate(array('max' => 'yesterday')); // WHERE end_date > '2011-03-13'
     * </code>
     *
     * @param     mixed $endDate The value to use as filter.
     *              Values can be integers (unix timestamps), DateTime objects, or strings.
     *              Empty strings are treated as NULL.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByEndDate($endDate = null, $comparison = null)
    {
        if (is_array($endDate)) {
            $useMinMax = false;
            if (isset($endDate['min'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::END_DATE, $endDate['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($endDate['max'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::END_DATE, $endDate['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::END_DATE, $endDate, $comparison);
    }

    /**
     * Filter the query on the event_order_id column
     *
     * Example usage:
     * <code>
     * $query->filterByEventOrderId(1234); // WHERE event_order_id = 1234
     * $query->filterByEventOrderId(array(12, 34)); // WHERE event_order_id IN (12, 34)
     * $query->filterByEventOrderId(array('min' => 12)); // WHERE event_order_id > 12
     * </code>
     *
     * @see       filterByEventOrders()
     *
     * @param     mixed $eventOrderId The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByEventOrderId($eventOrderId = null, $comparison = null)
    {
        if (is_array($eventOrderId)) {
            $useMinMax = false;
            if (isset($eventOrderId['min'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::EVENT_ORDER_ID, $eventOrderId['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($eventOrderId['max'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::EVENT_ORDER_ID, $eventOrderId['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::EVENT_ORDER_ID, $eventOrderId, $comparison);
    }

    /**
     * Filter the query on the selected column
     *
     * Example usage:
     * <code>
     * $query->filterBySelected(true); // WHERE selected = true
     * $query->filterBySelected('yes'); // WHERE selected = true
     * </code>
     *
     * @param     boolean|string $selected The value to use as filter.
     *              Non-boolean arguments are converted using the following rules:
     *                * 1, '1', 'true',  'on',  and 'yes' are converted to boolean true
     *                * 0, '0', 'false', 'off', and 'no'  are converted to boolean false
     *              Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterBySelected($selected = null, $comparison = null)
    {
        if (is_string($selected)) {
            $selected = in_array(strtolower($selected), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::SELECTED, $selected, $comparison);
    }

    /**
     * Filter the query on the last_modified column
     *
     * Example usage:
     * <code>
     * $query->filterByLastModified('2011-03-14'); // WHERE last_modified = '2011-03-14'
     * $query->filterByLastModified('now'); // WHERE last_modified = '2011-03-14'
     * $query->filterByLastModified(array('max' => 'yesterday')); // WHERE last_modified > '2011-03-13'
     * </code>
     *
     * @param     mixed $lastModified The value to use as filter.
     *              Values can be integers (unix timestamps), DateTime objects, or strings.
     *              Empty strings are treated as NULL.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByLastModified($lastModified = null, $comparison = null)
    {
        if (is_array($lastModified)) {
            $useMinMax = false;
            if (isset($lastModified['min'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::LAST_MODIFIED, $lastModified['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($lastModified['max'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::LAST_MODIFIED, $lastModified['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::LAST_MODIFIED, $lastModified, $comparison);
    }

    /**
     * Filter the query on the created column
     *
     * Example usage:
     * <code>
     * $query->filterByCreated('2011-03-14'); // WHERE created = '2011-03-14'
     * $query->filterByCreated('now'); // WHERE created = '2011-03-14'
     * $query->filterByCreated(array('max' => 'yesterday')); // WHERE created > '2011-03-13'
     * </code>
     *
     * @param     mixed $created The value to use as filter.
     *              Values can be integers (unix timestamps), DateTime objects, or strings.
     *              Empty strings are treated as NULL.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function filterByCreated($created = null, $comparison = null)
    {
        if (is_array($created)) {
            $useMinMax = false;
            if (isset($created['min'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::CREATED, $created['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($created['max'])) {
                $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::CREATED, $created['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::CREATED, $created, $comparison);
    }

    /**
     * Filter the query by a related RcpEventOrders object
     *
     * @param   RcpEventOrders|PropelObjectCollection $eventOrders The related object(s) to use as filter
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return   RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     * @throws   PropelException - if the provided filter is invalid.
     */
    public function filterByEventOrders($eventOrders, $comparison = null)
    {
        if ($eventOrders instanceof RcpEventOrders) {
            return $this
                ->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::EVENT_ORDER_ID, $eventOrders->getId(), $comparison);
        } elseif ($eventOrders instanceof PropelObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::EVENT_ORDER_ID, $eventOrders->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByEventOrders() only accepts arguments of type RcpEventOrders or PropelCollection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the EventOrders relation
     *
     * @param     string $relationAlias optional alias for the relation
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function joinEventOrders($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('EventOrders');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'EventOrders');
        }

        return $this;
    }

    /**
     * Use the EventOrders relation EventOrders object
     *
     * @see       useQuery()
     *
     * @param     string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return   RcpEventOrdersQuery A secondary query class using the current class as primary query
     */
    public function useEventOrdersQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinEventOrders($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'EventOrders', 'RcpEventOrdersQuery');
    }

    /**
     * Exclude object from result
     *
     * @param   RcpEventOrderProposalFreeDays $eventOrderProposalFreeDays Object to remove from the list of results
     *
     * @return RcpEventOrderProposalFreeDaysQuery The current query, for fluid interface
     */
    public function prune($eventOrderProposalFreeDays = null)
    {
        if ($eventOrderProposalFreeDays) {
            $this->addUsingAlias(RcpEventOrderProposalFreeDaysPeer::ID, $eventOrderProposalFreeDays->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }

}
